(function(){
	/*!
	* Developer-Defines
	*/
	var _JSJQ = 'http://theme.wscore.com/js/jquery.js', 
		_JSCR = 'http://theme.wscore.com/js/core.js', 
		_JSCS = 'http://theme.wscore.com/css/wscui.css', 
		_JSAJ = [
			/*! Base */
			'http://theme.wscore.com/js/base/ajax.js'
			, 'http://theme.wscore.com/js/base/dialog.js'
			, 'http://theme.wscore.com/js/base/form.js'
			, 'http://theme.wscore.com/js/base/tips.js'
			/*! Once */
			, 'http://theme.wscore.com/js/once/esc.js'
			, 'http://theme.wscore.com/js/once/scroll.js'
			, 'http://theme.wscore.com/js/once/imgdelay.js'
			, 'http://theme.wscore.com/js/once/resize.js'
			/*! Plugins */
			, 'http://theme.wscore.com/js/plugins/draggable.js'
			, 'http://theme.wscore.com/js/plugins/datepicker.js'
			, 'http://theme.wscore.com/js/plugins/editor.js'
			, 'http://theme.wscore.com/js/plugins/events.js'
			, 'http://theme.wscore.com/js/plugins/function.js'
			, 'http://theme.wscore.com/js/plugins/validator.js'
			, '/theme/codes.js'
		];
	/*! 浏览器 */
	var _msie = false, 
		_msiev = 10, 
		_sourceloader = true; 
	var _uagent = navigator.userAgent.toLowerCase(), 
		_uagent_trident = /trident\/([\w.]+)/.exec(_uagent) || [];
	if (_uagent_trident.length){
		_msie = true;
		_msiev = parseInt(_uagent_trident[1]);
		_msiev += 4;
	} else {
		var _uagent_msie = /msie\s*([\w.]+)/.exec(_uagent) || []; if (_uagent_msie.length){
			_msie = true;
			_msiev = parseInt(_uagent_msie[1]);
		}
	} if (_msie && _msiev < 9){
		_sourceloader = false;
	} if (_sourceloader){
		_JSAJ.push('/theme/source.js');
	}
	/*!
	* Developer-Loader
	*/
	document.write('<script src="'+_JSJQ+'" type="text/javascript"></script>');
	document.write('<script src="'+_JSCR+'" type="text/javascript"></script>');
	document.write('<link href="'+_JSCS+'" rel="stylesheet" type="text/css" />');
	/*!
	* Developer-Packages
	*/
	var _TIMER = null, 
		_TIMES = 15;
	var _TIMED = function(){
		if (_TIMER != null){
			clearInterval(_TIMER);
			_TIMER = null;
		} _TIMER = setInterval(function(){
			if (typeof jQuery != 'undefined' && typeof jQuery.wscfg != 'undefined' && typeof jQuery.fn.require != 'undefined'){
				clearInterval(_TIMER);
				_TIMER = null;
				/*!
				* AJAX
				*/
				var _AJAX_I = 0, 
					_AJAX_L = _JSAJ.length;
				$(_JSAJ).each(function(_k, _v){
					$.fn.require({url : _v + '?' + Math.random(), dataType : 'script', cache : true}, function(){
						_AJAX_I++; if (_AJAX_I == _AJAX_L){
							if (jQuery('body').wscbase_codes()){
								jQuery('body').wscload();
							}
						}
					});
				}); return true;
			} _TIMED();
		}, _TIMES);
	}; _TIMED();
})();